Health Cloud Clinical System API - Implementation Template

(0 reviews)

Developer guide

Clinical Dev Guide

                  The US-Core Clinical application uses the following DataWeave modules to map between Health Cloud and FHIR formats.
ModuleDescription
allergyintolerancefhirtoolsallergyintolerancefhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.
allergyintoleranceRequestThis module defines functions needed to convert a FHIR AllergyIntolerance resource into it's representation within Health Cloud.
conditionfhirtoolsconditionfhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.
conditionRequestThis module defines functions needed to convert a FHIR Condition resource into it's representation within Health Cloud.
procedurefhirtoolsprocedurefhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.
procedureRequestThis module defines functions needed to convert a FHIR Procedure resource into it's representation within Health Cloud.
servicerequestfhirtoolsservicerequestfhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.
servicerequestRequestThis module defines functions needed to convert a FHIR ServiceRequest resource into it's representation within Health Cloud.
UtilA library with needed dataweave utility functions.

allergyintolerancefhirtools

allergyintolerancefhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.

Source: .src/main/resources/dwl/AllergyIntolerance/allergyintolerancefhirtools.dwl

Functions

fun getAllergyIntoleranceResponse (allergyIntolerance, searchLookupResponse)

Generates the FHIR response with the provided AllergyIntolerance Object.

param allergyIntolerance is input AllergyIntolerance request.
param searchLookupResponse is the lookup response for codeableconcept.
return A Health Cloud AllergyIntolerance response.

FHIR Field NameSalesforce Object NameSalesforce Field NameMapping Description
idAllergyIntoleranceIdAllergyIntolerance Id
Identifier.useIdentifierIdUsageTypeIdentifies the purpose for this identifier
identifier.systemIdentifierSourceSystemIdentifier system for resource
identifier.valueIdentifierIdValueIdentifier value for resource
identifier.type.coding.codeIdentifierIdTypeIdDescription of identifier
clinicalStatus.coding.codeAllergyIntoleranceStatusPreferred value set for AllergyIntolerance Clinical Status
verificationStatus.coding.codeAllergyIntoleranceVerificationStatusPreferred value set for AllergyIntolerance Verification Status
typeAllergyIntoleranceTypeIdentification of the underlying physiological mechanism for a Reaction Risk
categoryAllergyIntoleranceCategoryCategory of an identified substance associated with allergies or intolerances
criticalityAllergyIntoleranceSeverityEstimate of the potential clinical harm or seriousness
code.coding.codeAllergyIntoleranceCodeIdCode that identifies the allergy or intolerance
patient.referenceAllergyIntolerancePatientIdPatient reference
encounter.referenceAllergyIntoleranceClinicalEncounterIdEncounter when the allergy or intolerance was asserted
onset.onsetDateTimeAllergyIntoleranceOnsetStartDateTimeOnset DateTime
recordedDateAllergyIntoleranceRecordCreationDateTimeDate first version of the resource instance was recorded
recorder.referenceAllergyIntoleranceRecordCreatorIdWho recorded the sensitivity
asserter.referenceAllergyIntoleranceAssertionSourceIdSource of the information about the allergy
lastOccurrenceAllergyIntoleranceLastOccurenceDateTimeDate(or time) of last known occurrence of a reaction
reaction.substance.coding.codePatientHealthReactionCausativeSubstanceIdSpecific substance considered to be responsible for event
reaction.manifestation.coding.codePatientHealthReactionManifestedSymptomIdClinical symptoms or signs associated with the Event
reaction.descriptionPatientHealthReactionDetailsDescription of the event as a whole
reaction.onset.onsetDateTimePatientHealthReactionReactionDateTimeDate(or time) when manifestations showed
reaction.severityPatientHealthReactionSeverityClinical assessment of the severity of a reaction event
reaction.exposureRoute.coding.codePatientHealthReactionExposureRouteIdHow the subject was exposed to the substance

fun getLinkSelf (attr: Object)

Gets the URL to the current web resource.

param attr is an object with the attributes.
return A string with the self link.

fun getEntryUrl (item: Object, attr: Object)

Gets the URL for the entry provided.

param item is an object with the item that's being returned.
param attr is an object with the attributes.
return A string with the entry URL.

(back to top)

allergyintoleranceRequest

This module defines functions needed to convert a
FHIR AllergyIntolerance resource into it's representation within
Health Cloud.

Source: .src/main/resources/dwl/AllergyIntolerance/allergyintoleranceRequest.dwl

Functions

fun getResultIds (res)

This function takes the results of a Salesforce query and returns a list of IDs.

param res is a Salesforce query result.
return An array with a list of Ids found.

fun getCodeSetUpsert (codeSetList)

Converts the provided AllergyIntolerance FHIR object to the Health Cloud CodeSet object.

param codeSetList is the list of codeSet object.
return Health Cloud CodeSet upsert fields.

fun getPickListValue (inputValue, lookupValue)

Converts the FHIR CodeableConcept fields and result from lookup to get the values for picklist field used in Encounter upsert.

param req is a FHIR object field, lookupReq is from FHIRCodeSetc. return_ value for the picklist field.

fun getAllergyIntoleranceUpsert (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided AllergyIntolerance FHIR object to the Health Cloud AllergyIntolerance object.

param fhirObj is a FHIR AllergyIntolerance object.
param codeSetBundleList is the list of CodeSetBundle objects for the AllergyIntolerance object
return Health Cloud AllergyIntolerance upsert fields.

fun getAllergyIntoleranceUpdate (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided AllergyIntolerance FHIR object to the Health Cloud AllergyIntolerance object.

param fhirObj is a FHIR AllergyIntolerance object.
param codeSetBundleList is the list of CodeSetBundle objects for the AllergyIntolerance object
return Health Cloud AllergyIntolerance update fields.

fun getPatientHealthReactionUpsert (reactionFhirObj, allergyIntoleranceId, codeSetBundleList, rIndex)

Converts the provided AllergyIntolerance (Reaction) FHIR object to the Health Cloud PatientHealthReaction object.

param reactionFhirObj is a FHIR AllergyIntolerance (Reaction) object.
param codeSetBundleList is the list of CodeSetBundle objects for the AllergyIntoleranceReactions object
return Health Cloud PatientHealthReaction upsert fields.

fun getIdentifierUpsert (identifier, allergyIntoleranceId, typeId)

Converts the provided AllergyIntolerance FHIR object to the Health Cloud Identifier object.

param identifier is the list of Identifier object.
param allergyIntoleranceId is the associated allergyIntolerance Id
return Health Cloud Identifier upsert fields.

fun getCodeSetBundleUpsert (codeSetList, bundleType, name)

Converts the provided AllergyIntolerance FHIR object to the Health Cloud CodeSetBundle object.

param codeSetList is the list of CodeSetBundle object.
param bundleType is for defining the CodeSetBundle type.
param bundleType is for defining the name of the CodeSetBundle.
return Health Cloud CodeSetBundle upsert fields.

(back to top)

conditionfhirtools

conditionfhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.

Source: .src/main/resources/dwl/Condition/conditionfhirtools.dwl

Functions

fun getConditionResponse (condition, searchLookupResponse)

Generates the FHIR response with the provided Condition Object.

param condition is the input condition object.
param searchLookupResponse is the lookup response from FHIR Codesets object.
return A Health Cloud Condition response.

FHIR Field NameSalesforce Object NameSalesforce Field NameMapping Description
idHealthConditionIdCondition Id
Identifier.useIdentifierIdUsageTypeIdentifies the purpose for this identifier
identifier.systemIdentifierSourceSystemIdentifier system for resource
identifier.valueIdentifierIdValueIdentifier value for resource
identifier.type.coding.codeIdentifierIdTypeIdDescription of identifier
clinicalStatus.coding.codeConditionStatusHealthConditionPreferred value set for Condition Clinical Status
verificationStatus.coding.codeDiagnosticStatusHealthConditionThe verification status to support the clinical status of the condition
category.coding.codeTypeHealthConditionPreferred value set for Condition Categories
severity.coding.codeSeverityHealthConditionSubjective severity of condition
code.coding.codeConditionCodeIdHealthConditionIdentification of the condition or diagnosis
bodySite.coding.codeSiteIdHealthConditionAnatomical location
subject.referencePatientIdHealthConditionReference of Patient
encounter.referenceClinicalEncounterIdHealthConditionEncounter reference
onset.onsetDateTimeOnsetStartDateTimeHealthConditionEstimated or actual date
abatement.abatementDateTimeAbatementStartDateTimeHealthConditionWhen in resolution or remission
recordedDateRecordCreationDateTimeHealthConditionDate record was first recorded
recorder.referenceRecordCreatorIdHealthConditionWho recorded the condition
asserter.referenceAssertionSourceIdHealthConditionPerson who asserts this condition
stage.summary.coding.codeStageIdHealthConditionSimple summary

fun getLinkSelf (attr: Object)

Gets the URL to the current web resource.

param attr is an object with the attributes.
return A string with the self link.

fun getEntryUrl (item: Object, attr: Object)

Gets the URL for the entry provided.

param item is an object with the item that's being returned.
param attr is an object with the attributes.
return A string with the entry URL.

(back to top)

conditionRequest

This module defines functions needed to convert a
FHIR Condition resource into it's representation within
Health Cloud.

Source: .src/main/resources/dwl/Condition/conditionRequest.dwl

Functions

fun getResultIds (res)

This function takes the results of a Salesforce query and returns a list of IDs.

param res is a Salesforce query result.
return An array with a list of Ids found.

fun getPickListValue (inputValue, lookupValue)

Converts the FHIR CodeableConcept fields and result from lookup to get the values for picklist field used in Encounter upsert.

param req is a FHIR object field, lookupReq is from FHIRCodeSetc. return_ value for the picklist field.

fun getCodeSetUpsert (codeSetList)

Converts the provided Condition FHIR object to the Health Cloud CodeSet object.

param codeSetList is the list of codeSet object.
return Health Cloud CodeSet upsert fields.

fun getConditionUpsert (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided Condition FHIR object to the Health Cloud Condition object.

param fhirObj is a FHIR Condition object.
param codeSetBundleList is the list of CodeSetBundle objects for the Condition object
return Health Cloud Condition upsert fields.

fun getConditionUpdate (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided Condition FHIR object to the Health Cloud Condition object.

param fhirObj is a FHIR Condition object.
param codeSetBundleList is the list of CodeSetBundle objects for the Condition object
return Health Cloud Condition update fields.

fun getIdentifierUpsert (identifier, conditionId, typeId)

Converts the provided Condition FHIR object to the Health Cloud Identifier object.

param identifier is the list of Identifier object.
param encounterId is the associated condition Id
return Health Cloud Identifier upsert fields.

fun getCodeSetBundleUpsert (codeSetList, bundleType, name)

Converts the provided Condition FHIR object to the Health Cloud CodeSetBundle object.

param codeSetList is the list of CodeSetBundle object.
param bundleType is for defining the CodeSetBundle type.
param name is for defining the name of the CodeSetBundle.
return Health Cloud CodeSetBundle upsert fields.

(back to top)

procedurefhirtools

procedurefhirtools DataWeave library contains functions used for converting Health Cloud data into FHIR format.

Source: .src/main/resources/dwl/Procedure/procedurefhirtools.dwl

Functions

fun getProcedureResponse (procedure, searchLookupResponse)

Generates the FHIR response with the provided Encounter Object.

param procedure is the Procedure object to map.
param searchLookupResponse is codeableConcept to picklist lookup response.
return A Health Cloud Procedure response.

FHIR Field NameSalesforce Object NameSalesforce Field NameMapping Description
idProcedureIdProcedure Id
Identifier.useIdentifierIdUsageTypeIdentifies the purpose for this identifier
identifier.systemIdentifierSourceSystemIdentifier system for resource
identifier.valueIdentifierIdValueIdentifier value for resource
identifier.type.coding.codeIdentifierIdTypeIdDescription of identifier
basedOn.referencePatientMedicalProcedureDetailDetailRecordIdA request for this procedure
partOf.referencePatientMedicalProcedureDetailDetailRecordIdPart of referenced event
statusReason.coding.systemPatientMedicalProcedureSourceSystemIdentity of the terminology system
statusReason.coding.versionPatientMedicalProcedureSystemVersionVersion of the system - if relevant
statusReason.coding.codePatientMedicalProcedureStatusReasonCodeIdReason code for current status
statusReason.coding.displayPatientMedicalProcedureNameRepresentation defined by the system
category.coding.systemPatientMedicalProcedureSourceSystemIdentity of the terminology system
category.coding.versionPatientMedicalProcedureSystemVersionVersion of the system - if relevant
category.coding.codePatientMedicalProcedureTypeIdClassification of the procedure
category.coding.displayPatientMedicalProcedureNameRepresentation defined by the system
code.coding.systemPatientMedicalProcedureSourceSystemIdentity of the terminology system
code.coding.versionPatientMedicalProcedureSystemVersionVersion of the system - if relevant
code.coding.codePatientMedicalProcedureCodeIdIdentification of the procedure
code.coding.displayPatientMedicalProcedureNameRepresentation defined by the system
subject.referencePatientMedicalProcedurePatientIdWho the procedure was performed on
encounter.referencePatientMedicalProcedureClinicalEncounterIdEncounter created as part of
performedDateTimePatientMedicalProcedureStartDateProcedure performed date
recorderPatientMedicalProcedureRecordCreatorIdWho recorded the procedure
asserterPatientMedicalProcedureAssertionSourceIdPerson who asserts this procedure
performer.function.coding.systemCarePerformerSourceSystemIdentity of the terminology system
performer.function.coding.versionCarePerformerSystemVersionVersion of the system - if relevant
performer.function.coding.codeCarePerformerRoleIdType of performance
performer.function.coding.displayCarePerformerNameRepresentation defined by the system
performer.actor.referenceCarePerformerPersonIdThe reference to the practitioner
performer.onBehalfOf.referenceCarePerformerAffiliatedOrganizationIdOrganization the device or practitioner was acting for
location.referencePatientMedicalProcedureFacilityIdWhere the procedure happened
reasonCode.coding.systemPatientMedicalProcedureSourceSystemIdentity of the terminology system
reasonCode.coding.versionPatientMedicalProcedureSystemVersionVersion of the system - if relevant
reasonCode.coding.codePatientMedicalProcedureReasonCodeIdCoded reason procedure performed
reasonCode.coding.displayPatientMedicalProcedureNameRepresentation defined by the system
reasonReference.referencePatientMedicalProcedureReasonReferenceIdThe justification that the procedure was performed
bodySite.coding.systemPatientMedicalProcedureDetailSourceSystemIdentity of the terminology system
bodySite.coding.versionPatientMedicalProcedureDetailSystemVersionVersion of the system - if relevant
bodySite.coding.codePatientMedicalProcedureDetailDetailCodeIdTarget body sites
bodySite.coding.displayPatientMedicalProcedureDetailNameRepresentation defined by the system
outcome.coding.codePatientMedicalProcedureOutcomeThe result of procedure
report.referencePatientMedicalProcedureReportIdAny report resulting from the procedure
complication.coding.systemPatientMedicalProcedureDetailSourceSystemIdentity of the terminology system
complication.coding.versionPatientMedicalProcedureDetailSystemVersionVersion of the system - if relevant
complication.coding.codePatientMedicalProcedureDetailDetailCodeIdComplication following the procedure
complication.coding.displayPatientMedicalProcedureDetailNameRepresentation defined by the system
complicationDetail.coding.systemPatientMedicalProcedureDetailSourceSystemIdentity of the terminology system
complicationDetail.coding.versionPatientMedicalProcedureDetailSystemVersionVersion of the system - if relevant
complicationDetail.coding.codePatientMedicalProcedureDetailDetailRecordIdA condition that is a result of the procedure
complicationDetail.coding.displayPatientMedicalProcedureDetailNameRepresentation defined by the system
followUp.coding.systemPatientMedicalProcedureDetailSourceSystemIdentity of the terminology system
followUp.coding.versionPatientMedicalProcedureDetailSystemVersionVersion of the system - if relevant
followUp.coding.codePatientMedicalProcedureDetailDetailCodeIdInstructions for follow up
followUp.coding.displayPatientMedicalProcedureDetailNameRepresentation defined by the system
note.textAuthorNoteNoteTextAdditional information about the procedure
focalDevice.action.coding.codePatientMedicalProcedureDetailDetailRecordIdKind of change to device
usedCode.coding.codePatientMedicalProcedureDetailDetailCodeIdCoded items used during the procedure

fun getLinkSelf (attr: Object)

Gets the URL to the current web resource.

param attr is an object with the attributes.
return A string with the self link.

fun getEntryUrl (item: Object, attr: Object)

Gets the URL for the entry provided.

param item is an object with the item that's being returned.
param attr is an object with the attributes.
return A string with the entry URL.

(back to top)

procedureRequest

This module defines functions needed to convert a
FHIR Procedure resource into it's representation within
Health Cloud.

Source: .src/main/resources/dwl/Procedure/procedureRequest.dwl

Functions

fun getResultIds (res)

This function takes the results of a Salesforce query and returns a list of IDs.

param res is a Salesforce query result.
return An array with a list of Ids found.

fun getCodeSetUpsert (codeSetList)

Converts the provided Procedure FHIR object to the Health Cloud CodeSet object.

param codeSetList is the list of codeSet object.
return Health Cloud CodeSet upsert fields.

fun getPatientMedicalProcedureUpsert (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided Procedure FHIR object to the Health Cloud PatientMedicalProcedure object.

param fhirObj is a FHIR Procedure object.
param codeSetBundleList is the list of CodeSetBundle objects for the Procedure object
return Health Cloud PatientMedicalProcedure upsert fields.

fun getPatientMedicalProcedureUpdate (fhirObj, codeSetBundleList, upsertLookupResponse)

Converts the provided Procedure FHIR object to the Health Cloud PatientMedicalProcedure object.

param fhirObj is a FHIR Procedure object.
param codeSetBundleList is the list of CodeSetBundle objects for the Procedure object
return Health Cloud PatientMedicalProcedure update fields.

fun getPatientMedicalProcedureDetailUpsert (procedureId, procedureDetail)

Converts the provided Procedure FHIR object to the Health Cloud PatientMedicalProcedureDetail object.

param procedureId is the associated Procedure Id
param procedureDetail is the list of Procedure Detail in Procedure FHIR object
return Health Cloud PatientMedicalProcedureDetails upsert fields.

fun getCarePerformerUpsert (procedureId, performer, codeSetBundleList)

Converts the provided Procedure FHIR object to the Health Cloud CarePerformer object.

param procedureId is the associated Procedure Id
param performer is Perfromer object of Procedure FHIR object
param codeSetBundleList is the list of CodeSetBundle objects for the Procedure object
return Health Cloud PatientMedicalProcedureDetails upsert fields.

fun getIdentifierUpsert (identifier, procedureId, typeId)

Converts the provided Procedure FHIR object to the Health Cloud Identifier object.

param identifier is the list of Identifier object.
param procedureId is the associated Procedure Id
param typeId is the codeSetId
return Health Cloud Identifier upsert fields.

fun getCodeSetBundleUpsert (codeSetList, bundleType, name)

Converts the provided Procedure FHIR object to the Health Cloud CodeSetBundle object.

param codeSetList is the list of CodeSetBundle object.
param bundleType is for defining the CodeSetBundle type.
param name is for defining the name of the CodeSetBundle.
return Health Cloud CodeSetBundle upsert fields.

(back to top)

servicerequestfhirtools

servicerequestfhirtools DataWeave library contains functions
used for converting Health Cloud data into FHIR format.

Source: .src/main/resources/dwl/ServiceRequest/servicerequestfhirtools.dwl

Functions

fun getServiceRequestResponse (req, searchLookupResponse, serviceRequestDetails, unitOfMeasureCode)

Generates the FHIR response with the provided ServiceRequest Object.

param req is the ServiceRequest request.
param searchLookupResponse is the lookup response for CodeableConcept.
param serviceRequestDetails is a list of ClinicalServiceRequestDetail objects associated with the service request.
param unitOfMeasureCode is the unit of measure code if found.
return A FHIR ServiceRequest response.

FHIR Field NameSalesforce Object NameSalesforce Field NameMapping Description
identifier.useIdentifierIdUsageTypeusualofficialtempsecondaryold
identifier.systemIdentifierSourceSystemThe namespace for the identifier.
identifier.valueIdentifierIdValueThe identifier value.
identifier.type.coding.codeIdentifierIDTypeIdDescription of the identifier.
identifier.period.startIdentifierEffectiveDateThe period when the ID is valid start value.
identifier.period.endIdentifierEndDateThe period when the ID is valid end value.
identifier.assignerIdentifierIssuingAuthorityIdThe organization that issued the ID.
basedOnClinicalServiceRequestDetailDetailRecordIdWhat the ServiceRequest fulfills.
replacesClinicalServiceRequestOriginalRequestIdWhat the ServiceRequest replaces.
requisition.identifier.useIdentifierIdUsageTypeusualofficialtempsecondaryold
requisition.identifier.systemIdentifierSourceSystemThe namespace for the identifier.
requisition.identifier.valueIdentifierIdValueThe identifier value.
requisition.identifier.type.coding.codeIdentifierIDTypeIdDescription of the identifier.
requisition.identifier.period.startIdentifierEffectiveDateThe period when the ID is valid start value.
requisition.identifier.period.endIdentifierEndDateThe period when the ID is valid end value.
requisition.identifier.assignerIdentifierIssuingAuthorityIdThe organization that issued the ID.
statusClinicalServiceRequestStatusdraftactiveon-holdrevokedcompletedentered-in-errorunknown
intentClinicalServiceRequestTypeproposalplandirectiveorderoriginal-orderreflex-orderfiller-orderinstance-orderoption
category.coding.codeClinicalServiceRequestCategoryIdThe classification of service.
priorityClinicalServiceRequestPriorityroutineurgentasapstat
doNotPerformClinicalServiceRequestIsIgnoredThis is set to true if the service or procedure shoudn't be performed.
code.coding.codeClinicalServiceRequestRequestCodeIdWhat is being requested or ordered.
quantityQuantity.valueClinicalServiceRequestQuantityNumeratorThe service amount value.
quantityQuantity.unitClinicalServiceRequestQuantityNumeratorUnitIdThe service amount unit.
quantityRatio.numerator.valueClinicalServiceRequestQuantityNumeratorThe service amount numerator value.
quantityRatio.denominator.valueClinicalServiceRequestQuantityDenominatorThe service amount denominator value.
quantityRatio.numerator.unitClinicalServiceRequestQuantityNumeratorUnitIdThe service amount numerator unit.
quantityRange.high.valueClinicalServiceRequestQuantityNumeratorThe service amount high value.
quantityRange.low.valueClinicalServiceRequestQuantityDenominatorThe service amount low value.
quantityRange.high.unitClinicalServiceRequestQuantityNumeratorUnitIdThe service amount high unit.
subjectClinicalServiceRequestPatientIdThe patient the service is ordered.
encounterClinicalServiceRequestEncounterIdThe encounter the service is ordered for.
occurrencePeriod.startClinicalServiceRequestStartDateWhen the service will occur start.
occurrencePeriod.endClinicalServiceRequestEndDateWhen the service will occur end.
occurrenceDateTimeClinicalServiceRequestStartDateWhen the service will occur start.
asNeededBooleanClinicalServiceRequestHasPrerequisitesPreconditions of the service boolean.
asNeededCodeableConcept.coding.codeClinicalServiceRequestPrerequisiteCodeIdPreconditions of the service CodeableConcept.
authoredOnClinicalServiceRequestDateSignedThe date the request was created.
requesterClinicalServiceRequestRequesterIdThe requester of the service request.
performerType.coding.codeClinicalServiceRequestPerformerTypeIdThe role of the performer.
performerClinicalServiceRequestPerformerIdThe requester of the service request.
locationCode.coding.codeClinicalServiceRequestFacilityCodeIdThe service request location code.
locationReferenceClinicalServiceRequestFacilityIdThe service request location reference.
reasonCode.coding.codeClinicalServiceRequestReasonCodeIdThe justification for the service request code.
reasonReferenceClinicalServiceRequestDiagnosticReportIdThe justification of the service request reference.
bodySite.coding.codeClinicalServiceRequestDetailDetailCodeIdThe location on the body.
patientInstructionClinicalServiceRequestPatientInstructionThe patient instructions.

fun getBasedOn (serviceRequestDetails)

Gets the ServiceRequest basedOn list with the provided list of ClinicalServiceRequestDetail objects.

param serviceRequestDetails is a list of ClinicalServiceRequestDetail objects.
return A list of references for the basedOn field or an empty list.

fun getBodySite (serviceRequestDetails)

Gets the ServiceRequest bodySite list with the provided list of ClinicalServiceRequestDetail objects.

param serviceRequestDetails is a list of ClinicalServiceRequestDetail objects.
return A list of CodeableConcept objects for the bodySite field or an empty list.

fun getLinkSelf (attr: Object)

Gets the URL to the current web resource.

param attr is an object with the attributes.
return A string with the self link.

fun getEntryUrl (item: Object, attr: Object)

Gets the URL for the entry provided.

param item is an object with the item that's being returned.
param attr is an object with the attributes.
return A string with the entry URL.

(back to top)

servicerequestRequest

This module defines functions needed to convert a
FHIR ServiceRequest resource into it's representation within
Health Cloud.

Source: .src/main/resources/dwl/ServiceRequest/servicerequestRequest.dwl

Functions

fun getServiceRequestUpsert (fhirObj, codeSetBundleList, unitOfMasureId, update)

Converts the provided ServiceRequest FHIR object to the Health Cloud ClinicalServiceRequest object.

param fhirObj is a FHIR ServiceRequest object.
param codeSetBundleList is the list of CodeSetBundle objects for the ServiceRequest object
param unitOfMasureId is a String with the unit of measure Id for QuantityNumeratorUnitId.
param update is a boolean with true to for an update request and false for not.
return Health Cloud ClinicalServiceRequest upsert fields.

fun getClinicalServiceRequestDetailBasedOnUpsert (basedOn, clinicalServiceRequestId)

Converts the provided ServiceRequest FHIR object to the Health Cloud ClinicalServiceRequestDetail for basedOn object.

param basedOn is a FHIR basedOn object.
param clinicalServiceRequestId is the parent ClinicalServiceRequest Id.
return Health Cloud ClinicalServiceRequestDetail upsert fields.

fun getClinicalServiceRequestDetailBodySiteUpsert (clinicalServiceRequestId, bodySiteIndex, codeSetBundleList)

Converts the provided ServiceRequest FHIR object to the Health Cloud ClinicalServiceRequestDetail for bodySite object.

param clinicalServiceRequestId is the parent ClinicalServiceRequest Id.
param bodySiteIndex is the index of the FHIR bodySite being produced.
param codeSetBundleList is the list of CodeSetBundle objects for the ServiceRequest object.
return Health Cloud ClinicalServiceRequestDetail upsert fields.

(back to top)

Util

A library with needed dataweave utility functions.

Source: .src/main/resources/dwl/Util.dwl

Functions

fun clean (obj: Object)

Cleans the provided object of blank strings, null values, empty objects, and empty arrays.

param obj is an Object to clean.
return A cleaned object.

fun clean (arr: Array)

Cleans the provided array of blank strings, null values, empty objects, and empty arrays.

param arr is an Array to clean.
return A cleaned Array.

fun removeNull (arr: Array)

Removes all null items from an array.

param arr is an array.
return An array with null items removed.

fun removeNull (obj: Object)

Removes all null values from an object.

param obj is an object.
return An object with null values removed.

(back to top)


Reviews

TypeTemplate
OrganizationMuleSoft
Published by
MuleSoft Solutions
Published onJan 2, 2024
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.8
1.0.7
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0